<!--存储容量记录-->
<template>
  <div class="tab1">
    <el-table
      :data="tab1TableData"
      highlight-current-row
      border
      height="100%"
      :row-style="{height:'40px'}"
      :cell-style="{padding:'0px'}"
      :header-cell-style="{background: '#FAFAFA', padding: 0, height: '40px', color: '#666666'}"
      style="width: 100%">
      <slot v-for="(item,index) in tab1Columns">
        <el-table-column
          :key="index"
          :property="item.field"
          :label="item.title"
          :width="item.width"
          show-overflow-tooltip
          sortable>
        </el-table-column>
      </slot>
    </el-table>
  </div>
</template>

<script>
export default {
  name: '',
  components: {
  },
  data () {
    return {
      tab1TableData: [
        {
          Store: '单面存储容量',
          View: '笔记本硬盘的磁记录密度高于同容量大硬盘',
          Methods: '水平磁记录',
          Power: '磁性晶体属永磁体颗粒',
          Remake: '测试数据1'
        },
        {
          Store: '用的磁盘盘面数',
          View: '笔记本硬盘的磁记录密度高于同容量大硬盘',
          Methods: '垂直磁记录',
          Power: '磁性晶体属永磁体颗粒',
          Remake: '测试数据2'
        }
      ],
      tab1Columns: [
        {
          title: '存储容量',
          field: 'Store'
        },
        {
          title: '记录密度',
          field: 'View'
        },
        {
          title: '存储方式',
          field: 'Methods'
        },
        {
          title: '矫顽力',
          field: 'Power'
        },
        {
          title: '备注',
          field: 'Remake'
        }
      ]
    }
  },
  created () {},
  mounted () {},
  methods: {}
}
</script>

<style lang="less" scoped>
.tab1 {
  width: 100%;
  height: 100%;
  padding: 10px;
}
</style>
